<div class="tableform">
      <table cellspacing="0" cellpadding="0" border="0" class="gridlist">
        <tr>
          <td>发货单号</td>
          <td>订单号</td>
          <td>订单内容</td>
          <td>发货方式</td>
          <td>物流公司</td>
          <td>物流单号</td>
          <td>车牌</td>
          <td>店铺名称</td>
          <td>AX客户编码</td>
          <td>客户简称</td>
          <td>AX客户名称</td>
          <td>AX送货单号</td>
          <td>AX订单号</td>
        </tr>
    <{assign var="key" value="0"}>
      <{foreach from=$res item=his}>
    <{assign var="key" value=$key+1 }>
      <tbody>
        <tr>
          <td><{$his.delivery_bn}></td>
          <td><{$his.order_bn}></td>
          <td><{$his.bnsContent}></td>
          <td><{if $his.deliverytype=='pickup'}>自提<{else}>送货<{/if}></td>
          <td><{$his.logi_name}></td>
          <td><{$his.logi_no}></td>
          <td><{$his.carno}></td>
          <td><{$his.shop_name}></td>
          <td><{$his.ax_name}></td>
          <td><{$his.shortname}></td>
          <td><{$his.ax_shopname}></td>
          <td><{$his.axshipno}></td>
          <td><{$his.axorderno}></td>
        </tr>
        </tr>
        </tbody>
      <{/foreach}>
        <tr>
          <td colspan="10">总数：</td>
          <td><{$key}></td>
        </tr>
      </table>
</div>